package com.dek.dubbo.consumer.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.dubbo.config.annotation.Reference;
import com.dek.dubbo.api.DemoService;

@RestController
public class TestController {
	
	@Reference(version = "1.0.0")
	DemoService demoService;
	
	@RequestMapping("test")
	public String test() {
		return demoService.sayHello("dek");
	}
	
}
